home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / lge.z / lge
Encoding:
Text File  |  1998-10-30  |  3.5 KB  |  70 lines

  1. LGE(3I)                                                Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      LLGGEE, LLGGTT, LLLLEE, LLLLTT - Compares strings lexically
  6.  
  7. SSYYNNOOPPSSIISS
  8.      LLGGEE (([SSTTRRIINNGG__AA==]_s_t_r_i_n_g__a,, [SSTTRRIINNGG__BB==]_s_t_r_i_n_g__b))
  9.  
  10.      LLGGTT (([SSTTRRIINNGG__AA==]_s_t_r_i_n_g__a,, [SSTTRRIINNGG__BB==]_s_t_r_i_n_g__b))
  11.  
  12.      LLLLEE (([SSTTRRIINNGG__AA==]_s_t_r_i_n_g__a,, [SSTTRRIINNGG__BB==]_s_t_r_i_n_g__b))
  13.  
  14.      LLLLTT (([SSTTRRIINNGG__AA==]_s_t_r_i_n_g__a,, [SSTTRRIINNGG__BB==]_s_t_r_i_n_g__b))
  15.  
  16. IIMMPPLLEEMMEENNTTAATTIIOONN
  17.      UNICOS, UNICOS/mk, and IRIX systems
  18.  
  19. SSTTAANNDDAARRDDSS
  20.      Fortran 90
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.      Each of these type logical functions takes two character string
  24.      arguments and returns a logical value.  _s_t_r_i_n_g__a and _s_t_r_i_n_g__b are
  25.      compared according to the ASCII collating sequence, and the resulting
  26.      true or false value is returned.
  27.  
  28.      _s_t_r_i_n_g__a and _s_t_r_i_n_g__b    Must be of type default character
  29.  
  30.      The defining equation for each function is as follows:
  31.  
  32.      * For LLGGEE, logic = _a  is greater than or equal to _a
  33.                          1                              2
  34.      * For LLGGTT, logic = _a  is greater than _a
  35.                          1                  2
  36.      * For LLLLEE, logic = _a  is less than or equal to _a
  37.                          1                           2
  38.      * For LLLLTT, logic = _a  is less than _a
  39.                          1               2
  40.      LLGGEE, LLGGTT, LLLLEE, and LLLLTT are elemental functions.  The names of these
  41.      intrinsics cannot be passed as arguments.
  42.  
  43. RREETTUURRNN VVAALLUUEESS
  44.      If the strings are of unequal length, the comparison is made as if the
  45.      shorter string were extended on the right with blanks to the length of
  46.      the longer string.  The return value of each intrinsic is as follows:
  47.  
  48.      * LLGGEE.  The result is true if the strings are equal or if _s_t_r_i_n_g__a
  49.        follows _s_t_r_i_n_g__b in the ASCII collating sequence; otherwise, the
  50.        result is false.  Note that the result is true if both _s_t_r_i_n_g__a and
  51.        _s_t_r_i_n_g__b are of equal length; this includes zero-length strings.
  52.  
  53.      * LLGGTT.  The result is true if _s_t_r_i_n_g__a follows _s_t_r_i_n_g__b in the ASCII
  54.        collating sequence; otherwise, it is false.  The result is false if
  55.        both _s_t_r_i_n_g__a and _s_t_r_i_n_g__b are of zero length.
  56.  
  57.      * LLLLEE.  The result is true if the strings are equal or if _s_t_r_i_n_g__a
  58.        precedes _s_t_r_i_n_g__b in the ASCII collating sequence; otherwise, it is
  59.        false.  Note that the result is true if both _s_t_r_i_n_g__a and _s_t_r_i_n_g__b
  60.        are of equal length; this includes zero-length strings.
  61.  
  62.      * LLLLTT.  The result is true if _s_t_r_i_n_g__a precedes _s_t_r_i_n_g__b in the ASCII
  63.        collating sequence; otherwise, it is false.  The result is false if
  64.        both _s_t_r_i_n_g__a and _s_t_r_i_n_g__b are of zero length.
  65.  
  66. SSEEEE AALLSSOO
  67.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  68.      printed version of this man page.
  69.  
  70.